//
//  ParkCallOutView.m
//  KuWeiPark
//
//  Created by Kevin Su on 15/4/30.
//  Copyright (c) 2015年 Clief. All rights reserved.
//

#import "ParkCallOutView.h"
#import "AppMacro.h"
#import "HttpClientManager.h"

@implementation ParkCallOutView

- (void)awakeFromNib{
    
    self.guideBtn.layer.masksToBounds = YES;
    self.guideBtn.layer.cornerRadius = 2;
    self.guideBtn.layer.borderColor = MAIN_GREEN_COLOR.CGColor;
    self.guideBtn.layer.borderWidth = 1;
    
    self.bookBtn.layer.masksToBounds = YES;
    self.bookBtn.layer.cornerRadius = 4;
}

- (void)initDataWithParkingSearchModel:(ParkingSearchModel *)model{
    
    self.nameLabel.text = model.name;
//    self.descriptionLabel.text = [NSString stringWithFormat:@"空车位%@个/总车位%@个", model.remainParkingSpace, model.totalParkingSpace];
    self.descriptionLabel.text = @"外婆家开业酬宾,凭当日用餐小票送2小时停车~";
}

- (IBAction)guideAction:(id)sender {
    
    NSDictionary *userinfo = @{@"ParkAnnotationView": self.parkAnnotationView};
    [[NSNotificationCenter defaultCenter] postNotificationName:Notify_ShowGuideToParkPort object:nil userInfo:userinfo];
}

- (IBAction)bookParkPlaceAction:(id)sender {

    NSDictionary *userinfo = @{@"ParkAnnotationView": self.parkAnnotationView};
    [[NSNotificationCenter defaultCenter] postNotificationName:Notify_ShowBookParkingPort object:nil userInfo:userinfo];
}

@end
